@gautchh Attach and config a keyboard in ES, go into the emulator of your choice and enter the rgui menu. There you can navigate to Settings, Input and configure your controller. Make sure the right controller-device is selected and try bind all.
If your controllername does not show up increase the number of players (or devices) under Input and try again.
Another way to get your controller working properly is using xboxdrv, which emulates an xbox controller and makes mapping it in games easier.